package br.mikhas.task.data;

import java.util.List;

import br.mikhas.task.History;
import br.mikhas.task.Task;

/**
 * 
 * @author Mikhail Domanoski
 * 
 */
public interface HistoryRepository {

	/**
	 * Gets task history
	 * 
	 * @param task
	 *            The task to load the history
	 * @return The history entries
	 */
	public List<History> get(Task task);

	/**
	 * Saves a history entry on the database
	 * 
	 * @param history
	 *            The History to be saved
	 */
	public void save(History history);
}
